package com.yujianweb;

import java.util.Arrays;

//测试Object[][]二维数组存储表格数据
public class Test07 {
    public static void main(String[] args) {
        //自动装箱
        Object[] a1 = {1001,"老高",18,"讲师","2-14"};
        Object[] a2 = {1002,"老刘",20,"助教","3-26"};
        Object[] a3 = {1003,"老王",21,"班主任","8-23"};
        Object[][] emps = new Object[3][];
        emps[0] = a1;
        emps[1] = a2;
        emps[2] = a3;
        System.out.println(Arrays.toString(emps[0]));
        System.out.println(Arrays.toString(emps[1]));
        System.out.println(Arrays.toString(emps[2]));
    }
}
